﻿namespace Elasticsearch.Model
{
    public class SuggestOption
    {
        public string Text { get; set; } = default!;
        public string Index { get; set; } = default!;  // _index
        public string Id { get; set; } = default!;     // _id
        public float Score { get; set; }                // _score
        public SourceData Source { get; set; } = default!;
    }

    public class SourceData
    {
        public string Name { get; set; } = default!;
        public string[] NameSuggest { get; set; } = default!;
    }
}
